<template>
    <view
        @tap="__e"
        @touchmove.stop.prevent="__e"
        class="mask data-v-36aa1e83"
        :data-event-opts="[
            ['tap', [['cancel', ['$event']]]],
            ['touchmove', [['', ['$event']]]]
        ]"
    >
        <view @tap.stop.prevent="__e" class="mask-content animated bounceInLeft data-v-36aa1e83" :data-event-opts="[['tap', [['', ['$event']]]]]">
            <text @tap.stop.prevent="__e" class="new-iconfont icon-close close-btn data-v-36aa1e83" :data-event-opts="[['tap', [['cancel', ['$event']]]]]"></text>
            <view class="title data-v-36aa1e83" v-if="!userGroupId">{{ '所有用户均可' + title }}</view>
            <view class="title data-v-36aa1e83" v-else>{{ title + '需符合以下条件:' }}</view>
            <view class="rule-c data-v-36aa1e83">
                <view class="item data-v-36aa1e83" v-if="options.vip.is_used">
                    <view class="key data-v-36aa1e83">已成为VIP会员</view>
                    <view class="status passed data-v-36aa1e83" v-if="options.vip.is_passed">已符合</view>
                    <block v-else>
                        <view @tap="__e" class="status un-passed data-v-36aa1e83" :data-event-opts="[['tap', [['toCheck', ['vip']]]]]">未符合</view>
                        <text class="new-iconfont icon-arrow-right data-v-36aa1e83"></text>
                    </block>
                </view>
                <view class="item data-v-36aa1e83" v-if="options.birthday.is_used">
                    <view class="key data-v-36aa1e83">已填写生日</view>
                    <view class="status passed data-v-36aa1e83" v-if="options.birthday.is_passed">已符合</view>
                    <block v-else>
                        <view @tap="__e" class="status un-passed data-v-36aa1e83" :data-event-opts="[['tap', [['toCheck', ['birthday']]]]]">未符合</view>
                        <text class="new-iconfont icon-arrow-right data-v-36aa1e83"></text>
                    </block>
                </view>
                <view class="item data-v-36aa1e83" v-if="options.phone.is_used">
                    <view class="key data-v-36aa1e83">已填写手机号</view>
                    <view class="status passed data-v-36aa1e83" v-if="options.phone.is_passed">已符合</view>
                    <block v-else>
                        <view @tap="__e" class="status un-passed data-v-36aa1e83" :data-event-opts="[['tap', [['toCheck', ['phone']]]]]">未符合</view>
                        <text class="new-iconfont icon-arrow-right data-v-36aa1e83"></text>
                    </block>
                </view>
                <view class="item data-v-36aa1e83" v-if="options.level_score.is_used">
                    <view class="key data-v-36aa1e83">{{ '成长值' + options.level_score.type + options.level_score.value }}</view>
                    <view class="status passed data-v-36aa1e83" v-if="options.level_score.is_passed">已符合</view>
                    <block v-else>
                        <view @tap="__e" class="status un-passed data-v-36aa1e83" :data-event-opts="[['tap', [['toCheck', ['level_score']]]]]">未符合</view>
                        <text class="new-iconfont icon-arrow-right data-v-36aa1e83"></text>
                    </block>
                </view>
                <view class="item data-v-36aa1e83" v-if="options.invitee_total.is_used">
                    <view class="key data-v-36aa1e83">{{ '邀请人数' + options.invitee_total.type + options.invitee_total.value + '人' }}</view>
                    <view class="status passed data-v-36aa1e83" v-if="options.invitee_total.is_passed">已符合</view>
                    <block v-else>
                        <view @tap="__e" class="status un-passed data-v-36aa1e83" :data-event-opts="[['tap', [['toCheck', ['invitee_total']]]]]">未符合</view>
                        <text class="new-iconfont icon-arrow-right data-v-36aa1e83"></text>
                    </block>
                </view>
                <view class="item data-v-36aa1e83" v-if="options.register_time.is_used">
                    <view class="key data-v-36aa1e83">{{ '注册时间' + options.register_time.type + options.register_time.value + '小时' }}</view>
                    <view class="status passed data-v-36aa1e83" v-if="options.register_time.is_passed">已符合</view>
                    <block v-else>
                        <view @tap="__e" class="status un-passed data-v-36aa1e83" :data-event-opts="[['tap', [['toCheck', ['register_time']]]]]">未符合</view>
                        <text class="new-iconfont icon-arrow-right data-v-36aa1e83"></text>
                    </block>
                </view>
                <view class="item data-v-36aa1e83" v-if="options.score.is_used">
                    <view class="key data-v-36aa1e83">{{ scoreAlias + '数量' + options.score.type + options.score.value }}</view>
                    <view class="status passed data-v-36aa1e83" v-if="options.score.is_passed">已符合</view>
                    <block v-else>
                        <view @tap="__e" class="status un-passed data-v-36aa1e83" :data-event-opts="[['tap', [['toCheck', ['score']]]]]">未符合</view>
                        <text class="new-iconfont icon-arrow-right data-v-36aa1e83"></text>
                    </block>
                </view>
                <view class="item data-v-36aa1e83" v-if="options.psy_money_total.is_used">
                    <view class="key data-v-36aa1e83">{{ '实付金额' + options.psy_money_total.type + options.psy_money_total.value }}</view>
                    <view class="status passed data-v-36aa1e83" v-if="options.psy_money_total.is_passed">已符合</view>
                    <block v-else>
                        <view @tap="__e" class="status un-passed data-v-36aa1e83" :data-event-opts="[['tap', [['toCheck', ['psy_money_total']]]]]">未符合</view>
                        <text class="new-iconfont icon-arrow-right data-v-36aa1e83"></text>
                    </block>
                </view>
                <view class="item data-v-36aa1e83" v-if="options.user_task_level.is_used">
                    <view class="key data-v-36aa1e83">{{ '会员等级' + options.user_task_level.type + options.user_task_level.value }}</view>
                    <view class="status passed data-v-36aa1e83" v-if="options.user_task_level.is_passed">已符合</view>
                    <block v-else>
                        <view @tap="__e" class="status un-passed data-v-36aa1e83" :data-event-opts="[['tap', [['toCheck', ['user_task_level']]]]]">未符合</view>
                        <text class="new-iconfont icon-arrow-right data-v-36aa1e83"></text>
                    </block>
                </view>
            </view>
            <view class="btn-c data-v-36aa1e83">
                <button @tap="__e" class="btn cancel bg-purple data-v-36aa1e83" :data-event-opts="[['tap', [['cancel', ['$event']]]]]">我知道了</button>
            </view>
        </view>
    </view>
</template>

<script>
import tabBar from '@/components/TabBar/tabBar';
(global.webpackJsonp = global.webpackJsonp || []).push([
    ['components/UserGroupCheck/UserGroupCheck'],
    {
        '0054': function (e, t, n) {
            'use strict';

            n.r(t);
            var o = n('a23a');
            var i = n.n(o);
            for (var r in o) {
                if (['default'].indexOf(r) < 0) {
                    (function (e) {
                        n.d(t, e, function () {
                            return o[e];
                        });
                    })(r);
                }
            }
            t.default = i.a;
        },
        '5c2b': function (e, t, n) {
            'use strict';

            var o = n('e890');
            n.n(o).a;
        },
        a23a: function (e, t, n) {
            'use strict';

            (function (e) {
                Object.defineProperty(t, '__esModule', {
                    value: true
                });
                t.default = void 0;
                var n = {
                    components: {},
                    data: function () {
                        return {
                            info: {},
                            isPassed: 0,
                            options: {},
                            isInit: false
                        };
                    },
                    props: {
                        userGroupId: {
                            type: Number
                        },
                        title: {
                            type: String
                        }
                    },
                    computed: {},
                    watch: {},
                    created: function () {
                        this.initOrder();
                    },
                    methods: {
                        toCheck: function (t) {
                            var n = {
                                phone: '/pages/myProfile/index',
                                vip: '/pages/buyVip/index',
                                birthday: '/pages/myProfile/index',
                                score: '/pages/myScore/index',
                                register_time: '/pages/center/detail',
                                level_score: '/pages/center/detail',
                                invitee_total: '/pages/myInvitees/index',
                                psy_money_total: '/pages/index/index'
                            }[t];
                            e.navigateTo({
                                url: n
                            });
                        },
                        initOrder: function () {
                            var that = this;
                            if (!this.userGroupId) {
                                return false;
                            }
                            e.showLoading();
                            this.$http('/user-group/check', 'POST', {
                                id: this.userGroupId
                            }).then(function (n) {
                                console.log(n);
                                that.isInit = true;
                                that.options = n.data.options;
                                that.isPassed = n.data.is_passed;
                                e.hideLoading();
                            });
                        },
                        cancel: function () {
                            this.$emit('close');
                        },
                        toPage: function (t) {
                            e.navigateTo({
                                url: t
                            });
                        }
                    }
                };
                t.default = n;
            }.call(this, n('543d').default));
        },
        add4: function (e, t, n) {
            'use strict';

            n.r(t);
            var o = n('e952');
            var i = n('0054');
            for (var r in i) {
                if (['default'].indexOf(r) < 0) {
                    (function (e) {
                        n.d(t, e, function () {
                            return i[e];
                        });
                    })(r);
                }
            }
            n('5c2b');
            var a = n('f0c5');
            var c = Object(a.a)(i.default, o.b, o.c, false, null, '36aa1e83', null, false, o.a, void 0);
            t.default = c.exports;
        },
        e890: function (e, t, n) {},
        e952: function (e, t, n) {
            'use strict';

            n.d(t, 'b', function () {
                return o;
            });
            n.d(t, 'c', function () {
                return i;
            });
            n.d(t, 'a', function () {});
            var o = function () {
                this.$createElement;
                this._self._c;
            };
            var i = [];
        }
    }
]);
(global.webpackJsonp = global.webpackJsonp || []).push([
    'components/UserGroupCheck/UserGroupCheck-create-component',
    {
        'components/UserGroupCheck/UserGroupCheck-create-component': function (e, t, n) {
            n('543d').createComponent(n('add4'));
        }
    },
    [['components/UserGroupCheck/UserGroupCheck-create-component']]
]);
</script>
<style>
@import './UserGroupCheck.css';
</style>
